<template>
  <div class="mybottom">
    <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-item" to="/shoy">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-item" to="/message">
				<span class="mui-icon mui-icon-email">
          <span class="mui-badge">0</span>
        </span>
				<span class="mui-tab-label">消息</span>
			</router-link>
			<router-link class="mui-tab-item" to="/shop">
				<span class="mui-icon mui-icon-extra mui-icon-extra-cart">
          <span class="mui-badge">{{ $store.state.carOf | carText}}</span>
        </span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-item" to="/myhome">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">我的</span>
			</router-link>
		</nav>
  </div>
</template>

<script>
export default {
  name: 'mybottom',
  data () {
    return {
    }
	},
	methods: {
	},
	filters: {
		"carText" : function(carOf){
			if(carOf == null){
				return 0
			}else{
				return carOf
			}
		}
	}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	*{
		touch-action: none;
	}
	.mybottom{
		width: 100%;
	}
</style>
